home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issue 18 / develop 18 code / OSA Sample / Sources / Application.r < prev    next >
Encoding:
Text File  |  1994-01-28  |  1.4 KB  |  77 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Application.r
  3.  
  4.     Contains:    Resources used by the TApplication class
  5.  
  6.     This module derived from the Apple Shared Library Manager
  7.     sample source code supplied with ASLM 1.1 (note that ASLM
  8.     is NOT required for, or used in, this project).
  9.     
  10.     Developed by:    
  11.         
  12.         Paul G Smith (commstalk hq & Full Moon Software, Inc)
  13.         
  14.         you can leave messages at (UK): 0727 844232; (US): 408 253 7199
  15.         BUT I prefer to be contacted by e-mail
  16.         AppleLink:     SMITH.PG
  17.         Internet:     SMITH.PG@applelink.apple.com
  18.         
  19.         "SimpliFace" Sample code to accompany develop article
  20.         on techniques for embedding scripts in applications.
  21.  
  22. */
  23.  
  24. #include "SysTypes.r"
  25. #include "Types.r"
  26.  
  27. #include "ApplicationCommon.h"
  28.  
  29. resource 'STR#' (kApplicationErrStrings, purgeable) {
  30.     {
  31.     "You must run on 512Ke or later";
  32.     "Application Memory Size is too small";
  33.     "AppleScript 1.1 is required"
  34.     }
  35. };
  36.  
  37.  
  38. /* this ALRT and DITL are used as an error screen */
  39. resource 'ALRT' (rUserAlert, purgeable) {
  40.     {40, 20, 180, 330},
  41.     rUserAlert,
  42.     { /* array: 4 elements */
  43.         /* [1] */
  44.         OK, visible, silent,
  45.         /* [2] */
  46.         OK, visible, silent,
  47.         /* [3] */
  48.         OK, visible, silent,
  49.         /* [4] */
  50.         OK, visible, silent
  51.     }
  52. };
  53.  
  54. resource 'DITL' (rUserAlert, purgeable) {
  55.     { /* array DITLarray: 3 elements */
  56.         /* [1] */
  57.         {110, 220, 130, 300},
  58.         Button {
  59.             enabled,
  60.             "OK"
  61.         },
  62.         /* [2] */
  63.         {10, 60, 90, 300},
  64.         StaticText {
  65.             disabled,
  66.             "Error. ^0."
  67.         },
  68.         /* [3] */
  69.         {8, 8, 40, 40},
  70.         Icon {
  71.             disabled,
  72.             2
  73.         }
  74.     }
  75. };
  76.  
  77.